.. _textparserfunctionforbarcodeandqrcode: Textparser function for barcode and qrcode ========================================== The extension adds a textparser function to include a barcode or qrcode in the PDF template. The syntax is .. code-block:: html $(custom : PADBarcode|||||||)$ where :code:``: name of the entity field :code:``: code of the barcode or qrcode Available codes are: Barcode 1D * C39: Code 39 * C39+: Code 39 with checksum * C39E: Code 39 Extended * C39E+: Code 39 Extended with checksum * C93: Code 93 * S25: Code 25 standard * S25+: Code 25 standard with checksum * I25: Code 25 interleaved * I25+: Code 25 interleaved with checksum * C128: Code 128 * EAN2: EAN 2 * EAN5: EAN 5 * EAN8: EAN 8 * EAN13: EAN 13 * UPCA: UPC A * UPCE: UPC E * MSI: MSI * MSI+: MSI with checksum * POSTNET: Postnet * PLANET: Planet * RMS4CC: RM4SCC * KIX: KIX * IMB: IMB * CODABAR: Codabar * CODE11: Code 11 * PHARMA: Pharmacode * PHARMA2T: Pharmacode 2-tracks Barcode 2D * QRCODE: QR Code * PDF417: PDF417 * DATAMATRIX: Data Matrix :code:``: integer (1, 2, 3, 4, ...) - the width of the single bar for 1D barcodes; the width of the barcode for 2D - default1D = 2, default2D = 3 :code:``: integer (1, 2, 3, 4, ...) - the height of the barcode - default1D = 30, default2D = 3 :code:``: in hexadecimal format (#FF0000) - the color of the barcode :code:``: boolean value (0, 1) - only for 1D barcode - displays the value under the barcode **Example**: QRCODE of the field named 'text_area', in red color .. code-block:: html $(custom : PADBarcode||text_area|QRCODE| | |#FF0000)$ **NB**: leave white space between the pipe symbols ( | ) if value is not assigned. In the example width and height are not assigned.